<script type="text/javascript" src="${base}/scripts/zjgl/pjgl_content.js"></script>
<form id="form_pjgl" action="" method="post">
    <input name="pj.id" type="hidden" value="${(pj.id)!''}"/>
    <input name="pj.pjsflx" type="hidden" value="${(pj.pjsflx)!''}"/>
    <#--<input name="pj.cprq" type="hidden" value="${(pj.cprq)!''}"/>-->
    <table style="width:100%" class="tb tab-t">
        <col width="17.5%"/><col width="32.5%"/><col width="17.5%"/><col width="32.5%"/>
        <tr>
            <th style="color:#f45212;">公司名称：</th>
            <td>
                <input id="pj_nbgs_id" name="pj.nbgs.id" type="text" value="${(pj.nbgs.id)!''}" class="easyui-combotree input-text "
                       required="true" data-options="url:'${base}/organ/gsjg/gsjg_tree?type=1',panelHeight:'200',editable:'true',lines:'true'"/>
            </td>
            <th style="color:#f45212;">出票银行：</th>
            <td>
            <#if pj?? &&pj.pjsflx?? && pj.pjsflx==0 >
                <input   name="pj.yscpyh" class=" input-text " type="text"
                         required="true"  value="${(pj.yscpyh)!''}"/>
            <#else>
                <input id="pj_cpyh_id" name="pj.yfcpyh.id" type="text" value="${(pj.yfcpyh.id)!''}" class="easyui-combobox input-text "
                       required="true"  data-options="url:'${base}/organ/khh/khhmcList',panelHeight:'200',editable:'true',valueField:'id',textField:'qc'"/>
            </#if>
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;"> 票据类型：</th>
            <td><label><input type="radio"  name="pj.pjlx" value="0"  checked
                              style="vertical-align:middle">银票</label>&nbsp;
                <label><input type="radio"  name="pj.pjlx" value="1"  <#if (pj.pjlx)?? && (pj.pjlx)==1>checked</#if>
                              style="vertical-align:middle">商票</label>&nbsp;
            </td>
            <th style="color:#f45212;"> 票据号码：</th>
            <td>
                <input  name="pj.pjhm" class="easyui-validatebox input-text"
                        validType="remote['${base}/zjgl/pjgl/ajax_validate?pjsflxType=1&&pjId=${(pj.id)!}',{'validateField':'pjhm'},'票据号码不能重复！']"
                        required="true"  value="${(pj.pjhm)!''}"/>
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;"> 票面金额：</th>
            <td>
                <input  name="pj.dqje" class="input-text easyui-numberbox" type="text"
                        required="true"  value="${(pj.dqje)!''}"/>
            </td>
            <#--toDo-->
            <th > 保证金：</th>
            <td>
                <input  name="pj.bzj" class="input-text easyui-numberbox" type="text"
                        required="true" value="${(pj.bzj)!'0'}"  />%
            </td>
        </tr>
        <tr>
            <th>到期日：</th>
            <td>
                <input name="pj.dqr" required="true"
                       class="easyui-datebox input-text " type="text" value="${(pj.dqr)!}"/>
            </td>
            <th>出票日期：</th>
            <td>
                <input name="pj.cprq" required="true"
                       class="easyui-datebox input-text " type="text" value="${(pj.cprq)!}"/>
            </td>
        </tr>
        <tr>
            <th>备注：</th>
            <td>
                <input name="pj.bz" class="input-text" type="text" value="${(pj.bz)!}"/>
            </td>
        </tr>
    <#if pj?? &&pj.pjsflx?? && pj.pjsflx==0 >
        <tr>
            <th>收款人：</th>
            <td>
                <input name="pj.skr" class="input-text" type="input-text" value="${(pj.skr)!}"/>
            </td>
            <th>出票人：</th>
            <td>
                <input name="pj.cpr" class="input-text" type="input-text" value="${(pj.cpr)!}"/>
            </td>
        </tr>
    </#if>
    </table>
</form>


